'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;

    //引入私有中间件
    let self = app.middleware.self({ title: "this is router.js" })

  router.get('/', controller.home.index);
  router.get("/detail", self, controller.detail.index);
  router.get("/movie", controller.movie.index);
};
